package com.jcy_lyh.enjoy_all;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class SecondActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_second);

        Button lifeplan = (Button)findViewById(R.id.button2);
        lifeplan.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(SecondActivity.this,Second1Activity.class);
                startActivity(intent);
            }
        });
        Button DailyHandAccount = (Button)findViewById(R.id.button3);
        DailyHandAccount.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(SecondActivity.this,Second2Activity.class);
                startActivity(intent);
            }
        });
        Button selfExpession = (Button)findViewById(R.id.button4);
        selfExpession.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(SecondActivity.this,Second3Activity.class);
                startActivity(intent);
            }
        });
    }
}

